package com.example.bootstudy.bean;

/**
 * @author XiongJianLin
 * @date Created in 2022/5/7 17:31
 */
public class Pet {
    private String name;
    private String type;

    public Pet() {
    }

    public Pet(String name, String type) {
        this.name = name;
        this.type = type;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"type\":\"")
                .append(type).append('\"');
        sb.append('}');
        return sb.toString();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
